cleanup: use CSI Server interfaces (CephFS & NFS) - #6304
Conversation
|
@Mergifyio rebase |
☑️ Nothing to do, the required conditions are not metDetails
|
|
@Mergifyio rebase |
b071930 to
4a7d654
Compare
|
Deprecation notice: This pull request comes from a fork and was rebased using |
✅ Branch has been successfully rebased |
4a7d654 to
b67640d
Compare
|
@Mergifyio rebase |
b67640d to
7cff68a
Compare
✅ Branch has been successfully rebased |
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.36 |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
/test ci/centos/mini-e2e-helm/k8s-1.36 |
|
@Mergifyio rebase |
🛑 The pull request rule doesn't match anymoreDetailsThis action has been cancelled. |
Rename the NFS controller Server type to nfsControllerServer and return the csi.ControllerServer interface from NewControllerServer to keep the concrete implementation internal to the package. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
Rename the NFS NodeServer type to nfsNodeServer and return the csi.NodeServer interface from NewNodeServer to keep the concrete implementation internal to the package. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
Rename the CephFS ControllerServer struct to cephfsControllerServer to follow Go naming conventions for unexported types and to make it clear this is the CephFS-specific implementation. Update all method receivers and references accordingly. Add compile-time interface assertions to ensure the type implements the required CSI interfaces. Add unit test for ToGroupControllerServer helper function that verifies proper conversion of ControllerServer to GroupControllerServer interface. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
Rename the CephFS NodeServer struct to cephfsNodeServer to follow Go naming conventions for unexported types and to make it clear this is the CephFS-specific implementation. Update all method receivers and references accordingly, including in fuserecovery.go where the NodeServer methods are used for FUSE mount recovery operations. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
Rename the CephFS IdentityServer struct to cephfsIdentityServer to follow Go naming conventions for unexported types and to make it clear this is the CephFS-specific implementation. Update the method receiver and add compile-time interface assertion to ensure the type implements the required CSI IdentityServer interface. Update driver.go to use the csi.IdentityServer interface type and return the new cephfsIdentityServer from NewIdentityServer. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
Rename the NFS identity Server struct to nfsIdentityServer to follow Go naming conventions for unexported types and to make it clear this is the NFS-specific implementation. Update the method receiver, add compile-time interface assertion to ensure the type implements the required CSI IdentityServer interface, and update NewIdentityServer to return the csi.IdentityServer interface. Assisted-by: AskBob <askbob@ibm.com> Signed-off-by: Niels de Vos <ndevos@ibm.com>
c994d6c to
8334511
Compare
|
/test ci/centos/k8s-e2e-external-storage/1.36 |
|
/test ci/centos/k8s-e2e-external-storage/1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.36 |
|
/test ci/centos/mini-e2e-helm/k8s-1.34 |
|
/test ci/centos/k8s-e2e-external-storage/1.35 |
|
/test ci/centos/mini-e2e/k8s-1.36 |
|
/test ci/centos/mini-e2e/k8s-1.34 |
|
/test ci/centos/mini-e2e-helm/k8s-1.35 |
|
/test ci/centos/upgrade-tests-cephfs |
|
/test ci/centos/upgrade-tests-rbd |
|
/test ci/centos/mini-e2e/k8s-1.35 |
|
Queued — the merge queue status continues in this comment ↓. |
|
Deprecation notice: This pull request comes from a fork and was queued with |
Merge Queue Status
This pull request spent 10 seconds in the queue, including 2 seconds running CI. Required conditions to merge
|
Rename the different gRPC server structs to include a prefix of the storage protocol they use. This makes it easier to understand the code, as having a struct
NodeServerfor each protocol causes confusion.The
NewNodeServer()and similar functions now return a CSI interface type, making sure that the implementation of the structs is not available to external consumers.Note: RBD and NVMe-oF changes will be sent in a separate PR.
Show available bot commands
These commands are normally not required, but in case of issues, leave any of
the following bot commands in an otherwise empty comment in this PR:
/retest ci/centos/<job-name>: retest the<job-name>after unrelatedfailure (please report the failure too!)